Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Route deletion after route listener is removed #10845

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Nov 18, 2024

Type of change

  • Bugfix

Description

Currently, when a user has a type: route listener and removes it, the routes are never deleted. This is because the protection against trying to use the Route support on clusters where we don't support Routes (non-OpenShift clusters) is on the wrong level.

This PR fixes it by doing the check on a lower level of the code. It also adds unit tests for the Route management that were missing so far.

Checklist

  • Write tests
  • Make sure all tests pass
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally

@scholzj scholzj added this to the 0.45.0 milestone Nov 18, 2024
@scholzj scholzj requested a review from ppatierno November 18, 2024 17:41
@scholzj
Copy link
Member Author

scholzj commented Nov 18, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 8dbaae3 into strimzi:main Nov 20, 2024
21 checks passed
@scholzj scholzj deleted the fix-route-deletion-after-route-listener-is-removed branch November 20, 2024 07:39
OwenCorrigan76 pushed a commit to OwenCorrigan76/strimzi-kafka-operator that referenced this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants